import request from '../utils/request'

export function getList(params) {
  return request.ajax({
      url: `/coupons/listMyCoupons`,
      method: 'post',
      params
  })
} 
export function getListCanGet(id) {
  return request.ajax({
      url: `/coupons/listCanGet/${id}`,
      method: 'post'
  })
} 
export function receive(id) {
  return request.ajax({
      url: `/coupons/receive/${id}`,
      method: 'post',
      loading:true
  })
} 
export function getMyStoreCoupons(id) {
  return request.ajax({
      url: `/coupons/listStoreMyCoupons/${id}`,
      method: 'post'
  })
} 
export function getCanUseCoupons(params) {
  return request.ajax({
      url: `/coupons/getCanUseCoupons`,
      method: 'post',
      loading:true,
      params
  })
} 